﻿using System;
using Telerik.JustMock;
using DelonixRegiaHMSys.Core.Services;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DelonixRegiaHMSys.UnitTest.CheckInManagement
{
    [TestClass]
    public class AddCheckInRecord
    {
        [TestMethod]
        public void AddCheckIn()
        {
            var mockCheckInQuery = Mock.Create<ICheckInQuery>();

            var ciservice = new ciServices(mockCheckInQuery);

            CheckIn mockCI = new CheckIn();

            ciservice.AddCheckIn(mockCI);

            Mock.Assert(() => mockCheckInQuery.AddCheckIn(Arg.IsAny<CheckIn>()));
        }
    }
}
